import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const CanaryKey = 'Canary'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


export function getCanary () {
  return Cookies.get(CanaryKey)
}
export function setCanary (canary = false) {
  return Cookies.set(CanaryKey, canary)
}
export function removeCanary () {
  return Cookies.remove(CanaryKey)
}